package com.pan.dao.goods;

import com.pan.entity.Goods;
import org.apache.ibatis.annotations.Mapper;

import java.sql.Timestamp;
import java.util.List;

@Mapper
public interface GoodsSelectDao{
    Goods selectById(Long id);
    List<Goods> selectByCategoryId(Long categoryId);
    Goods selectByName(String name);
    java.util.List<Goods> selectByUnit(String unit);
    Goods selectByTitle(String title);
    Goods selectByImg(String img);
    List<Goods> selectByPrice(Double price);
    List<Goods> selectByDetail(String detail);
    List<Goods> selectByCreateDate(Timestamp createDate);
    List<Goods> selectByUpdateDate(Timestamp updateDate);
    List<Goods> selectByGoodsStatus(Integer goodsStatus);
    List<Goods> selectBySaleCount(Long saleCount);
}